<%@ page language="java" 
         contentType="text/html; charset=windows-1256"
         pageEncoding="windows-1256"
         import="CreatorUtil.*"
         import="LoginUtil.User"
   %>
 
 <% User currentUser = (User) (session.getAttribute("currentSessionUser"));
	if(currentUser == null || currentUser.getUserType() != User.UserType.Admin)
 	{
 		response.sendRedirect("login.jsp");
 	}
 %>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

   <html>

      <head>
         <meta http-equiv="Content-Type" 
            content="text/html; charset=windows-1256">
         <title>  Welcome - Adventure Time MedSys  </title>
         <link rel="stylesheet" type="text/css" href="style.css" />
      </head>
	
      <body>

         <center>
          
			<br><br><br><br></br>
            <div id="header">Create a new nurse - fill out the form below.</div>
            <br><Br><br><Br></br>
            
            <FORM NAME="newuserform" ACTION="CreateNewUserServlet" METHOD="GET">
            
            	<table>
            		<tr>First Name:  <INPUT TYPE="text" NAME="firstnamebox" VALUE=""></tr><br>
	            	<tr>Last Name:  <INPUT TYPE="text" NAME="lastnamebox" VALUE=""></tr><br>
	            	<tr>Username:  <INPUT TYPE="text" NAME="usernamebox" VALUE=""></tr><br>
	            	<tr>Password:  <INPUT TYPE="text" NAME="passwordbox" VALUE=""></tr><br>
	            	<br><INPUT TYPE="hidden" NAME="usertype" VALUE="nurse"></INPUT>
	            	<tr><INPUT TYPE="submit" NAME="newdoctorbutton" Value="Create New Nurse"></tr>
            	</table>
            </FORM>
            <br><br><br><br>
            
            <a href ="adminMain.jsp">Return</a>
           
         </center>

      </body>
	
   </html>